<section id="login-form"><!--form-->
	<div class="container">
		<div class="row">
			<div class="col-sm-4 col-sm-offset-1">
				<div class="login-form"><!--login form-->
					<h2>Đăng nhập</h2>
                    <p class="hidden pprogress">
                        <img src="<?php echo assets('images/loading.gif'); ?>" alt="loading" />
                        <span class="text-danger">Đang xử lý ...</span>
                    </p>
                    <div id="login-message" class="message-text alert alert-message alert-danger hidden"></div>
					
                    <?php
                    	$aRef = array();
                    	$ref = $this->input->get('ref', true);
                    	if($ref!=false){
                    		$aRef = array('ref' => $ref);
                    	}
                    ?>
					<form method="post" action="<?php echo page_url('dang-nhap/do', $aRef); ?>">
						<input type="text" placeholder="Tên đăng nhập" autocomplete='off' maxlength="50" name="lg[username]" id="lusername" class="form-control can-submit" data-follow-submit='.login-btn' />
						<input type="password" placeholder="Mật khẩu" autocomplete='off' maxlength="100" name="lg[password]" id="lpassword" class="form-control can-submit" data-follow-submit='.login-btn' />
						<span>
							<input type="checkbox" name="rememberme"/> Ghi nhớ
						</span>
						<button type="submit" class="btn btn-default login-btn"><i class='glyphicon glyphicon-ok-sign'></i>&nbsp;Đăng nhập</button>
					</form>
				</div><!--/login form-->
			</div>
			<div class="col-sm-1">
				<h2 class="or">OR</h2>
			</div>
			<div class="col-sm-4">
				<div class="signup-form"><!--sign up form-->
					<h2>Đăng kí !</h2>
                    <p class="hidden pprogress">
                        <img src="<?php echo assets('images/loading.gif'); ?>" alt="loading" />
                        <span class="text-danger">Đang xử lý ...</span>
                    </p>
                    <div id="signup-message" class="message-text alert alert-message alert-danger hidden"></div>
					<form method="post" action="<?php echo page_url('dang-ki/do'); ?>">
				        <label for="full_name">Họ tên</label>
                        <input placeholder="Họ tên" type="text" maxlength="50" name="signup[full_name]" id="full_name" class="form-control" />
						<label for="full_name">Tên đăng nhập</label>
                        <input placeholder="Tên đăng nhập" type="text" maxlength="50" name="signup[username]" id="username" class="form-control" />
						<label for="full_name">Mật khẩu</label>
                        <input placeholder="Mật khẩu" type="password" maxlength="100" name="signup[password]" id="password" class="form-control"/>
                        <label for="full_name">Xác nhận mật khẩu</label>
                        <input placeholder="Xác nhận mật khẩu" type="password" maxlength="100" name="repassword" id="repassword" class="form-control"/>
                        <label for="full_name">Email</label>
                        <input placeholder="Email" type="text" maxlength="150" name="signup[email]" id="email" class="form-control"/>
                        <p>
                            <strong><span class="text-danger">*</span></strong>
                            Email bạn nhập phải có thực, <strong>Phiên Chợ Việt</strong> sẽ gửi mã kích hoạt vào email này.
                        </p>
                        <p>(<span class='text-danger'>*</span>) không được để trống</p>
                        <button type="button" class="btn btn-default" id="signup-btn"><i class='glyphicon glyphicon-ok-sign'></i>&nbsp;Đăng kí</button>
					</form>
				</div><!--/sign up form-->
			</div>
		</div>
	</div>
</section>